# registry.py
import ast
from typing import Dict, Type

# 全局注册表，存储AST类型与节点类的映射
节点注册表: Dict[Type[ast.AST], Type['ast节点基础模型']] = {}
图形项注册表: Dict[Type[ast.AST], Type['节点基础图形项']] = {}